package com.spring.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version 1.0.0
 * @Date: 2022/6/18 8:04
 * @Author ZhuYouBin
 * @Description
 */
@Controller
public class CharacterController {

    @RequestMapping("/index")
    public String index() {
        // 跳转到 form.jsp 页面
        return "form";
    }

    @RequestMapping("/login")
    public String login(String username, String password) {
        System.out.println("username===>:" + username);
        System.out.println("password===>:" + password);
        return "form";
    }

}
